import request from '@/utils/request'


//  获取促销商品列表
export function getPromotionGoodsList (promotionId, query) {
  return request({
    url: `/store/promotion/promotion/${promotionId}/goods`,
    method: 'get',
    params: query
  })
}

//   修改促销商品
export function updatePromotionGoods (promotionType, ptomotionId, promotionGoodsId, data) {
  return request({
    url: `/store/promotion/promotion/${promotionType}/${ptomotionId}/${promotionGoodsId}`,
    method: 'put',
    data: data
  })
}
//   删除促销商品
export function delPromotionGoods (promotionType, ptomotionId, promotionGoodsId) {
  return request({
    url: `/store/promotion/promotion/${promotionType}/${ptomotionId}/${promotionGoodsId}`,
    method: 'delete',
  })
}

